// 客户管理模块

import request from '@/utils/request'

// 客户列表
export function postCustomerList(data) {
  return request({
    url: '/customer/list',
    method: 'post',
    data: data,
  })
}

// 客户详情
export function postCustomerInfo(data) {
  return request({
    url: '/customer/info',
    method: 'post',
    data: data,
  })
}

// 添加客户
export function postCustomerAdd(data) {
  return request({
    url: '/customer/add',
    method: 'post',
    data: data,
  })
}

// 编辑客户信息
export function postCustomerEdit(data) {
  return request({
    url: '/customer/edit',
    method: 'post',
    data: data,
  })
}

// 删除客户
export function postCustomerRemove(data) {
  return request({
    url: '/customer/remove',
    method: 'post',
    data: data,
  })
}

// 充值
export function payAdd(data) {
  return request({
    url: '/customer/pay/add',
    method: 'post',
    data: data,
  })
}
//套餐
export function getList(data) {
  return request({
    url: '/resource/package/list',
    method: 'post',
    data: data,
  })
}
//账号
export function getzhanghList(data) {
  return request({
    url: '/pay/account/list',
    method: 'post',
    data: data,
  })
}

export function getSum(data) {
  return request({
    url: '/customer/sum',
    method: 'post',
    data: data,
  })
}